package com.cool.cloud.service;

import com.cool.cloud.entity.BGWork;

import java.util.List;

/**
 * @author laijunji
 * @InterfaceName BGWorkMapper
 * @Description 后台任务业务层接口
 * @date 2020-03-10 11:22:11
 * @Version 1.0
 **/
public interface BGWorkService {

    /**
     * @param bgwork 实例对象
     * @return 影响行数
     * @Description 添加bgwork
     * @author laijunji
     * @date 2020-03-10 11:22:11
     */
    int insert(BGWork bgwork);

    /**
     * @param userid
     * @return FileShare
     * @Description 查询某一用户数据
     * @author laijunji
     * @date 2020-03-10 11:22:11
     */
    List<BGWork> queryByUserId(Integer userid);


    /**
     * @return 影响行数
     * @Description 修改bgwork
     * @author laijunji
     * @date 2020-03-10 11:22:11
     */
    int update(BGWork bgwork);

    /**
     * @return 影响行数
     * @Description 批量删除
     * @author laijunji
     * @date 2020-03-10 11:22:11
     */
    int batchDelete(String[] pks);

    /**
     * 后台任务执行法昂发
     *
     * @param bgwork,sec
     * @return void
     */
    void excute(BGWork bgwork, Integer sec, Integer folderid, Integer storeid) throws Exception;
}
